package com.shop.cereshop.app.param.recommend;

import com.shop.cereshop.commons.domain.common.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "动态分页参数")
@Accessors(chain = true)
public class RecommendPageDTO extends PageParam {

    @ApiModelProperty(value = "话题id")
    private Long recommendTypeId;

    @ApiModelProperty(value = "文件类型(1-图片，2-视频)")
    private Integer fileType;

    @ApiModelProperty(value = "排序(话题详情下的动态列表查询/视频、图文搜索时传入 1-最热，2-最新)")
    private Integer sort;

    @ApiModelProperty(value = "搜索关键字")
    private String keyword;

    @ApiModelProperty(value = "发布者id(个人主页和他人主页时使用，他人主页传他人用户id)")
    private Long buyerUserId;

    @ApiModelProperty(value = "话题列表项中的动态分页页记录数")
    private Integer recommendPageSize;

    @ApiModelProperty(value = "话题列表项中的动态分页页数")
    private Integer recommendPage;

    @ApiModelProperty(value = "业务字段，前端不用传(1-首页动态列表，2-话题详情页的动态列表，3-个人中心的动态列表，4-搜索的动态列表，)")
    private Integer filter;

    @ApiModelProperty(value = "是否查询附近的人的动态  true查询 / false 不查询")
    private Boolean isNearby;

    @ApiModelProperty(value = "动态点赞或收藏(1-点赞,2-收藏,3-关注列表)")
    private Integer option;

    @ApiModelProperty(value = "动态id", required = false)
    private Long recommendId;

    // 屏蔽用户id列表
    private List<Long> blockedUserIds;

}
